package cn.gzsf.sboot10.mapper;


import cn.gzsf.sboot10.entity.Weibo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WeiboMapper {

    @Insert("INSERT INTO weibo VALUES(null,#{content},#{url})")
    int insert(Weibo weibo);
    @Select("SELECT * FROM weibo")
    List<Weibo> select();

}
